package com.liujun.spring4.demo.aop.application.property.outerconfig;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/06
 */
@Component
public class AnnotationUseValue {

  @Value("#{sysConfig.sessionTimeout}")
  private int sessionTimeout;

  @Value("#{sysConfig.maxTablePageNum}")
  private int maxTablePageNum;

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("UserPrintValue{");
    sb.append("sessionTimeout=").append(sessionTimeout);
    sb.append(", maxTablePageNum=").append(maxTablePageNum);
    sb.append('}');
    return sb.toString();
  }
}
